package cn.tedu._05mvcboot02.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 添加用户功能的DTO
 */
@Data
public class AddUserDTO {
    @ApiModelProperty(value = "用户名",required = true)
    @NotBlank(message = "用户名不能为空白")
    @Size(min = 6, max = 12, message = "用户名长度位6-12位")
    private String username;
    @ApiModelProperty(value = "用户密码",required = true)
    @NotNull(message = "密码不能为空值")
    private String password;
    @ApiModelProperty(value = "用户昵称",required = true)
    private String nickname;
}
